<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "set_product_commission".
 *
 * @property int $id
 * @property int $product_id
 * @property float $diff_vip1
 * @property float $diff_vip2
 * @property float $diff_vip3
 * @property float $low
 * @property float $equal
 */
class SetProductCommission extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'set_product_commission';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['product_id'], 'integer'],
            [['diff_vip1', 'diff_vip2', 'diff_vip3'], 'number'],

            [['low', 'equal'], 'safe']
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'product_id' => 'Product ID',
            'diff_vip1' => 'Diff Vip1',
            'diff_vip2' => 'Diff Vip2',
            'diff_vip3' => 'Diff Vip3',
        ];
    }
}
